package com.xxl.sso.server.service;

import java.util.List;

import com.icom.sso.util.RetKit;
import com.xxl.sso.core.entity.PageData;
import com.xxl.sso.server.core.model.BackTree;
import com.xxl.sso.server.core.model.Department;


public interface DepartmentService {
	/**
	 * 分页查询部门信息
	 * 
	 * @param page
	 * @param rows
	 * @return
	 */
	public PageData<Department> pageFindDept(Integer page, Integer rows, String dptId, String name, String no);

	public List<BackTree> findDeptTree();

	public Department findDeptById(String id);

	public RetKit<String> saveDept(Department department);

	public RetKit<String> saveEditInfo(Department department);

	public RetKit<String> delDept(String id);
	
	public List<Department> findDepts();

}
